package cn.iocoder.yudao.module.product.controller.admin.product.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 商品新增/修改 Request VO")
@Data
public class ProductSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "24668")
    private Long id;

    @Schema(description = "商品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "商品名称")
    @NotEmpty(message = "商品名称不能为空")
    private String name;

    @Schema(description = "商品描述", example = "商品描述")
    private String description;

    @Schema(description = "价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "22578")
    @NotNull(message = "价格不能为空")
    private BigDecimal price;

    @Schema(description = "上架状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "上架状态不能为空")
    private Integer upsalaStatus;

}